package org.jeecg.modules.inOrder.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.inOrder.entity.InOrderDetail;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 入库单主表
 * @Author: jeecg-boot
 * @Date: 2024-05-06
 * @Version: V1.0
 */
@Data
@ApiModel(value = "in_orderPage对象", description = "入库单")
public class InOrderPage {

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 订单号
     */
    @Excel(name = "订单号", width = 15)
    @ApiModelProperty(value = "订单号")
    private String inOrderCode;
    /**
     * 集装箱号
     */
    @Excel(name = "集装箱号", width = 15)
    @ApiModelProperty(value = "集装箱号")
    private String containerNo;
    /**
     * 入库时间
     */
    @Excel(name = "入库时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "入库时间")
    private Date inOrderTime;
    /**
     * 入库库区
     */
    @Excel(name = "入库库区", width = 15, dictTable = "basic_warehouse", dicCode = "warehouse_code", dicText = "warehouse_name")
    @Dict(dictTable = "basic_warehouse", dicCode = "warehouse_code", dicText = "warehouse_name")
    @ApiModelProperty(value = "入库库区")
    private java.lang.String area;
    /**
     * 品番类型
     */
    @Excel(name = "品番类型", width = 15, dicCode = "goods_type")
    @ApiModelProperty(value = "品番类型")
    @Dict(dicCode = "goods_type")
    private Integer goodsType;
    /**
     * 备注信息
     */
    @Excel(name = "备注信息", width = 15)
    @ApiModelProperty(value = "备注信息")
    private String remarks;
    /**
     * 入库状态
     */
    @ApiModelProperty(value = "入库状态")
    private String status;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**
     * 批次号
     */
    @ApiModelProperty(value = "批次号")
    private String batchNumber;
    /**
     * 入库单明细
     */
    @ExcelCollection(name = "入库单明细")
    @ApiModelProperty(value = "入库单明细")
    private List<InOrderDetail> inOrderDetailList;

}
